package com.water.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @program: city_water
 * @description:
 * @author: lydms
 * @create: 2024-05-11 15:59
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Meter implements Serializable {

    private static final long serialVersionUID = 1L;


    private Long meterId;
    private Long userId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime installationDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime lastReadingDate;

    // 1正常，2异常
    private Integer  meterStatus;
}
